﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace com.IronOne.BoardAppWeb.Controllers
{
    public class GenException : Exception
    {
        private string code;

        public GenException(string code)
            : base(com.IronOne.BoardAppWeb.Lang.Resources.ResourceManager.GetString(code))
        {
            this.code = code;
            //string msg = com.IronOne.BoardAppWeb.Lang.Resources.ResourceManager.GetString(code);            
        }

        public GenException(string code, string msg)
            : base(msg)
        {
            this.code = code;
        }

        public string Code { get { return this.code; } set { this.code = value; } }
    }

    public enum EventStatus
    {
        Entry = 0,
        Success,
        Debug,
        FileUploaded,
        Failure
    }
}
